<%@ page import="javax.sql.*"%>
<%@ page import="java.util.*"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
		<html:base />
		<link rel="stylesheet" type="text/css" href="../resources/style.css" media="screen"/>

		<title><bean:message key="reviewer.title" /></title>

</head>
<body>
		<p class="sansserif">
		<div class="container">
		<div class="center_div">
			<% 
				Vector<String> otherReviewers = (Vector<String>)request.getAttribute("otherReviewers");
			
				if(!otherReviewers.isEmpty())
				{
			%>
			<p><b>Please recommend another reviewer to review this application: </b></p><br>
			<html:form action="/recommendReviewer">

				<html:select property="user">
					<logic:iterate id="reviewer" name="otherReviewers" indexId="counter">
				
						<option value=<%= otherReviewers.get(counter)%>><%= otherReviewers.get(counter)%></option>
					</logic:iterate>
				</html:select>
				<html:submit value="Submit" />

			
			</html:form>
			<%
				}
				else 
				{
			%>
			<p>There are no more reviewers to review this application.<p><br><br>
			<html:link action="/reviewerHome">Back to home</html:link>

			<%
				}
			%>

		</div>
		</div>
			
</body>
</html>